<layout name="layout" />
<div class="nav">
    <ul class="cc">
        <li class="current"><a href="{:U('User/CaiType/index')}">菜品分类</a></li>
        <li><a href="{:U('User/CaiType/add')}">添加分类</a></li>
    </ul>
</div>
<div class="table_list">
    <table width="100%" border="0" cellpadding="5" cellspacing="1" class="tableClass">
        <thead>
            <tr>
                <td width="12%" align="center">分类ID</td>
                <td  align="center">分类名称</td>
                <td  align="center">排序</td>
                <td  align="center">状态</td>
                <td width="35%" align="center">管理操作</td>
            </tr>
        </thead>
        <tbody>
        <volist name="list" id="vo" key="k">
            <tr>
                <td align="center">{$vo.type_id}</td>
                <td align="center"> 
                    {$vo.type_name}
                </td>
                <td align="center"> 
                    {$vo.sort_order}
                </td>
                <td align="center"> 
            <if condition="$vo['status'] == 1">
                显示
                <else/>
                不显示
            </if>
            </td>
            <td align="center">
                <a href="{:U('User/CaiType/edit',array('id'=>$vo['type_id']))}">
                    <font color=blue>编辑</font>
                </a>
                <a href="{:U('User/CaiType/foreverdelete',array('type_id'=>$vo['type_id']))}">
                    <font color=blue>删除</font>
                </a>
            </td>
            </tr>
        </volist>
        </tbody>
    </table>
    <div class="p10">
        <div class="pages">{$Page}</div>
    </div>
</div>